<script setup>
const options = ref({
  title: {
    text: '各题型正确率(%)'
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {},
  series: [
    {
      name: '正确率',
      type: 'pie',
      radius: '50%',
      data: [
        { value: 48.8, name: '单选题' },
        { value: 25.6, name: '多选题' },
        { value: 20.9, name: '判断题' },
        { value: 4.7, name: '简答题' }
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
})
</script>

<template>
  <Echart width="100%" :options="options" />
</template>

<style lang="scss" scoped></style>
